<?php
/***************************************************************************
*						  patch_ucp_color.php
*							--------------
*	begin		: 2006/06/02
*	copyright	: phantomk
*	email		: phantomk@hackbb.com
*
*	Version		: 0.0.3 - 2006/06/15
*
***************************************************************************/

/***************************************************************************
*
*   This program is free software; you can redistribute it and/or modify
*   it under the terms of the GNU General Public License as published by
*   the Free Software Foundation; either version 2 of the License, or
*   (at your option) any later version.
*
***************************************************************************/

if ( !defined('IN_PHPBB') )
{
	die('Hack attempt');
}

// header
$patch_version = '1.0.0';
$patch_date = '20060615';
$patch_author = 'phantomk';
$patch_ref = 'AGCM Addon : User control panel : Preferences';

// panels and fields
$patch_data = array(
	'ucp' => array(
		'name' => 'Ucp',
		'options' => array(

			'prefs' => array(
				'name' => 'Preferences',
				'options' => array(

					'color' => array(
						'name' => 'Color_options',
						'file' => 'includes/ucp/ucp_color',
						'auth' => array(POST_GROUPS_URL => 'ucp_edit_color'),
						'fields' => array(
							'user_group_id' => array('type' => 'list', 'legend' => 'AGCM_user_color', 'explain' => 'AGCM_user_color_explain', 'field' => 'user_group_id', 'options' => '[func]group_color_select'),
						),
					),
				),
			),
		),
	),
);

// auths definitions
$patch_auths = array(
	POST_GROUPS_URL => array(
		'ucp_edit_color' => array(
			GROUP_ADMIN => array(GROUP_ANONYMOUS => true, GROUP_FOUNDER => DENY, GROUP_ADMIN => DENY, GROUP_REGISTERED => true),
			GROUP_REGISTERED => array(GROUP_OWN => true),
		),
	),
);

?>